﻿using S7SingalTool.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S7SingalTool.Core
{
    public class CellButtonHelper
    {
        public static IList<object> TableDropDownItems { get;  set; }
        public static List<CksVirtualTable> Tables { get; set; } = new List<CksVirtualTable>();
        internal static string GetTableName(int id)
        {
            if (Tables == null)
                return "";
            if (id == 0)
                return "";
           return Tables.Find(x => x.Id == id)?.TableName??"" ;
        }
    }
}
